import request from 'admin/api/request'
import { formData } from 'admin/utils/utils'

export function uploadImage(data) {
    return request({
        apiName: '上传图片',
        url: 'https://image.yulaisoft.com/image/upload',
        method: 'post',
        data: formData(data),
    })
}

export function delImgs(data) {
    return request({
        apiName: '删除图片',
        url: 'https://image.yulaisoft.com/image/delete',
        method: 'post',
        data,
    })
}

// export function getIconfont() {
//     return request({
//         apiName: '获取阿里图标',
//         url: 'https://at.alicdn.com/t/font_2815246_uv2cd99p4n.json?spm=a313x.7781069.1998910419.41&file=font_2815246_uv2cd99p4n.json',
//         method: 'get',
//     })
// }
